package socket;

//[ek] TODO make auth service with OOD, not procedural data structure like now
public class Users {
        private static String[][] accounts= {
                        {"client1", "client1"},
                        {"client2", "client2"},
                        {"client3", "client3"}
        };
       
        public static boolean dataCheck(String login, String password){
               
                for (String[] account: accounts){
                        System.out.println(account);
                        if (account[0].equalsIgnoreCase(login)
                                        && account[1].equalsIgnoreCase(password)){
                                return true;
                        }
                               
                }
               
                return false;
        }
       
}

